package com.github.jspxnet.worktask.model.param;

import com.github.jspxnet.enums.AuditEnumType;
import com.github.jspxnet.txweb.annotation.Param;
import com.github.jspxnet.txweb.util.MemberUtil;
import com.github.jspxnet.utils.StringUtil;
import com.github.jspxnet.worktask.util.WorkFlowUtil;
import lombok.Data;
import java.io.Serializable;


@Data
public class WorkTaskParam implements Serializable {
    @Param(caption = "流程编号")
    private String flowNo = StringUtil.empty;

    @Param(caption = "文档编号")
    private String documentNo = StringUtil.empty;

    @Param(caption = "命名空间")
    private String namespace = StringUtil.empty;

    // 状态，1：通过；2：驳回
    @Param(caption = "状态",enumType = AuditEnumType.class)
    private int auditType = AuditEnumType.WAIT.getValue();

    @Param(caption = "审核意见")
    private String note = StringUtil.empty;

    //json 格式保存
    @Param(caption = "意见附件")
    private String attachment;

    @Param(caption = "用户id")
    private String userId = StringUtil.empty;

    @Param(caption = "用户名")
    private String userName = StringUtil.empty;

    public String getUsers()
    {
        return MemberUtil.makeUser(userId,userName);
    }

}
